package com.lcb.storage.service;
import com.lcb.common.utils.BaseResponse;
import com.lcb.storage.entity.UndoLog;
import org.springframework.web.bind.annotation.*;

/****
 * @Author:lcb
 * @Description:UndoLog业务层接口
 * @Date: 2021-01-28 11:29:40
 *****/
public interface UndoLogService {

    /***
     * UndoLog多条件分页查询
     * @param undoLog
     * @param page
     * @param size
     * @return
     */
    @GetMapping("/findUndoLogList/{page}/{size}")
    BaseResponse findUndoLogList(@RequestBody UndoLog undoLog, @PathVariable(value = "page") int page, @PathVariable(value = "size") int size);

    /***
     * 删除UndoLog
     * @param ids
     */
    @DeleteMapping("/deleteUndoLogById/{ids}")
    BaseResponse deleteUndoLogById(@PathVariable(value = "ids") String ids);

    /***
     * 修改UndoLog数据
     * @param undoLog
     */
    @PutMapping("/updateUndoLog")
    BaseResponse updateUndoLog(@RequestBody UndoLog undoLog);

    /***
     * 新增UndoLog
     * @param undoLog
     */
    @PostMapping("/addUndoLog")
    BaseResponse addUndoLog(@RequestBody UndoLog undoLog);

    /**
     * 根据ID查询UndoLog
     * @param id
     * @return
     */
    @GetMapping("/findUndoLogById/{id}")
    BaseResponse findUndoLogById(@PathVariable("id") Long id);

    /***
     * 查询所有UndoLog
     * @return
     */
    @GetMapping("/findUndoLogAll")
    BaseResponse findUndoLogAll();
}
